<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人主页 - 图文视频社交App</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="components.css">
    <style>
        .profile-header {
            background: linear-gradient(to right, #ff2d55, #ff385c);
            padding: 20px;
            color: white;
            position: relative;
        }
        
        .profile-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            border: 3px solid white;
            object-fit: cover;
        }
        
        .profile-stats {
            display: flex;
            justify-content: space-around;
            text-align: center;
            margin-top: 16px;
        }
        
        .stat-value {
            font-weight: bold;
            font-size: 18px;
        }
        
        .stat-label {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .profile-tab {
            padding: 12px 0;
            text-align: center;
            font-weight: 600;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }
        
        .profile-tab.active {
            color: #ff2d55;
            border-bottom-color: #ff2d55;
        }
        
        .content-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2px;
        }
        
        .content-item {
            aspect-ratio: 1/1;
            position: relative;
        }
        
        .content-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .content-type-icon {
            position: absolute;
            top: 5px;
            right: 5px;
            color: white;
            text-shadow: 0 1px 2px rgba(0,0,0,0.5);
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="status-bar">
        <div class="status-bar-time">14:30</div>
        <div class="status-bar-icons">
            <i class="fas fa-signal"></i>
            <i class="fas fa-wifi"></i>
            <i class="fas fa-battery-full"></i>
        </div>
    </div>

    <!-- 顶部导航 -->
    <div class="flex justify-between items-center px-4 py-2 bg-white">
        <div class="text-xl font-bold text-pink-600">我的</div>
        <div class="flex">
            <i class="fas fa-cog text-gray-600 mr-4 text-xl"></i>
            <i class="fas fa-share-alt text-gray-600 text-xl"></i>
        </div>
    </div>

    <!-- 个人资料 -->
    <div class="profile-header">
        <div class="flex items-center">
            <img src="https://images.unsplash.com/photo-1534528741775-53994a69daeb" alt="个人头像" class="profile-avatar">
            <div class="ml-4">
                <div class="text-xl font-bold">阳光生活家</div>
                <div class="text-sm opacity-80 mt-1">ID: sunshine_life</div>
                <div class="mt-2 flex">
                    <div class="bg-white bg-opacity-20 rounded-full px-3 py-1 text-xs mr-2">
                        <i class="fas fa-venus mr-1"></i>
                        <span>女生</span>
                    </div>
                    <div class="bg-white bg-opacity-20 rounded-full px-3 py-1 text-xs">
                        <i class="fas fa-map-marker-alt mr-1"></i>
                        <span>上海</span>
                    </div>
                </div>
            </div>
        </div>
        
        <div class="mt-3">
            <div class="text-sm">分享美好生活，记录精彩瞬间 ✨</div>
        </div>
        
        <div class="profile-stats">
            <div>
                <div class="stat-value">128</div>
                <div class="stat-label">作品</div>
            </div>
            <div>
                <div class="stat-value">1.2k</div>
                <div class="stat-label">关注</div>
            </div>
            <div>
                <div class="stat-value">8.5k</div>
                <div class="stat-label">粉丝</div>
            </div>
            <div>
                <div class="stat-value">42.3k</div>
                <div class="stat-label">获赞</div>
            </div>
        </div>
    </div>

    <!-- 编辑资料按钮 -->
    <div class="p-3 bg-white">
        <button class="secondary-button">编辑资料</button>
    </div>

    <!-- 内容分类 -->
    <div class="grid grid-cols-4 bg-white">
        <div class="profile-tab active">作品</div>
        <div class="profile-tab">收藏</div>
        <div class="profile-tab">点赞</div>
        <div class="profile-tab">标签</div>
    </div>

    <!-- 内容展示 -->
    <div class="content-container">
        <div class="content-grid">
            <!-- 内容项1 - 视频 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1546069901-ba9599a7e63c" alt="内容缩略图">
                <i class="fas fa-play content-type-icon"></i>
            </div>
            
            <!-- 内容项2 - 图片 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1522383225653-ed111181a951" alt="内容缩略图">
                <i class="fas fa-images content-type-icon"></i>
            </div>
            
            <!-- 内容项3 - 视频 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1511707171634-5f897ff02aa9" alt="内容缩略图">
                <i class="fas fa-play content-type-icon"></i>
            </div>
            
            <!-- 内容项4 - 图片 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e" alt="内容缩略图">
                <i class="fas fa-images content-type-icon"></i>
            </div>
            
            <!-- 内容项5 - 图片 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1504198453319-5ce911bafcde" alt="内容缩略图">
                <i class="fas fa-images content-type-icon"></i>
            </div>
            
            <!-- 内容项6 - 视频 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1513407030348-c983a97b98d8" alt="内容缩略图">
                <i class="fas fa-play content-type-icon"></i>
            </div>
            
            <!-- 内容项7 - 图片 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1476224203421-9ac39bcb3327" alt="内容缩略图">
                <i class="fas fa-images content-type-icon"></i>
            </div>
            
            <!-- 内容项8 - 图片 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1455619452474-d2be8b1e70cd" alt="内容缩略图">
                <i class="fas fa-images content-type-icon"></i>
            </div>
            
            <!-- 内容项9 - 视频 -->
            <div class="content-item">
                <img src="https://images.unsplash.com/photo-1551782450-17144efb9c50" alt="内容缩略图">
                <i class="fas fa-play content-type-icon"></i>
            </div>
        </div>
    </div>

    <!-- 底部导航栏 -->
    <div class="tab-bar">
        <div class="tab-item">
            <i class="fas fa-home tab-icon"></i>
            <span>首页</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-search tab-icon"></i>
            <span>搜索</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-plus-circle tab-icon" style="font-size: 32px; margin-top: -5px;"></i>
            <span>创作</span>
        </div>
        <div class="tab-item">
            <i class="far fa-bell tab-icon"></i>
            <span>消息</span>
        </div>
        <div class="tab-item active">
            <i class="fas fa-user tab-icon"></i>
            <span>我的</span>
        </div>
    </div>

    <script src="app.js"></script>
    <script>
        // 处理个人主页选项卡切换
        const profileTabs = document.querySelectorAll('.profile-tab');
        profileTabs.forEach(tab => {
            tab.addEventListener('click', function() {
                profileTabs.forEach(t => t.classList.remove('active'));
                this.classList.add('active');
            });
        });
    </script>
</body>
</html> 